<!-- eslint-disable vue/multi-word-component-names -->
<template>
 <div>
   <PropertyBox @xxList='oneData' :shujuList='shujuList' :title="'地产列表'" />
 </div>
</template>

<script>
export default {
  async created () {
    this.shujuList = JSON.parse(localStorage.getItem('dichanList')) || this.$store.state.classifyList
  },
  data () {
    return {
      shujuList: []
    }
  },
  methods: {
    oneData (val) {
      this.$store.commit('getxxdata', val)
      this.$router.push('/detail/' + val.id)
    }
  }
}
</script>

<style>

</style>
